1702bc068746e23fcc0cb89b70dc0a19696a79f7,arms/src/main/java/com/jess/arms/base/BaseActivity.java,BaseActivity,onDestroy,#,118

Before Change


        synchronized (BaseActivity.class) {
            mApplication.getActivityList().remove(this);
        }
        mPresenter.onDestroy();//释放资�
        ButterKnife.unbind(this);
        EventBus.getDefault().unregister(this);
    }

After Change


        synchronized (BaseActivity.class) {
            mApplication.getActivityList().remove(this);
        }
        if (mPresenter != null) mPresenter.onDestroy();//释放资�
        ButterKnife.unbind(this);
        EventBus.getDefault().unregister(this);
    }